package apkinser

import (
    "log"
    "encoding/xml"
)

func ParseServerInfo(data []byte) (*Server, error) {
    v := new(Server)
    err := xml.Unmarshal(data, v)
    if err != nil {
        log.Printf("error: %v", err)
        return nil, err
    }
    return v, nil;
}
